package aatesting;

public class StaticVar {
	
	static private int staticvar=0;
	
	public void increment()
	{
		staticvar=staticvar+1;
	}
	public int getVar()
	{
		return staticvar;
	}
	
	public static void main(String args[])
	{
		StaticVar sv=new StaticVar();
		System.out.println(sv.getVar());
		sv.increment();
		System.out.println(sv.getVar());
		
		StaticVar sv2=new StaticVar();
		System.out.println(sv2.getVar());
		
	}

}
